﻿<Window x:Class="ZenBridge.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ZenBridge from Archers Rally" 
        Loaded="Window_Loaded" xmlns:my="clr-namespace:ZenBridge" 
        Closing="Window_Closing" ResizeMode="CanMinimize" 
        WindowStyle="SingleBorderWindow" xmlns:my1="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" Height="286" Width="592" HorizontalAlignment="Center" VerticalAlignment="Center">
    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <ToolBar Height="30" Name="toolBar1" VerticalContentAlignment="Center">
               
            <Menu Name="menu1">
                <MenuItem Header="ZenBridge" Padding="7,1,8,2">
                    <Button Content="Install Picasa Button"  Name="buttonInstallPicasaButton" Click="buttonInstallPicasaButton_Click" Padding="7,1,8,2" />
                    <Button Content="Create New Gallery"  Name="buttonCreateGallery"  IsEnabled="False" Padding="7,1,8,2" />
                </MenuItem>
            </Menu>
            <Menu Margin="8,0,8,0">
                <MenuItem Header="Console" Padding="7,1,8,2">
                    <TextBox Height="152"  Name="textBoxConsole"  Width="242" IsReadOnly="True" VerticalScrollBarVisibility="Auto" MouseDoubleClick="textBoxConsole_MouseDoubleClick" TextWrapping="Wrap" Focusable="False" IsUndoEnabled="False" AllowDrop="False" IsHitTestVisible="False" />
                </MenuItem>
            </Menu>
            <Separator />

            
            <Button Content="Zenfolio Login"  Name="buttonZfLogin" Click="buttonZfLogin_Click" Padding="7,1,8,2" Width="125" MaxWidth="125" />
            
            
            <Menu>
                <MenuItem Header="Select Gallery" Name="menuItemGallery" Padding="7,1,8,2" Width="150" MaxWidth="150" HorizontalContentAlignment="Center">
                    <TreeView Name="treeViewGalleries" Visibility="Visible" SelectedItemChanged="treeViewGalleries_SelectedItemChanged"  Width="259">
                        <TreeView.ItemTemplate>
                            <HierarchicalDataTemplate ItemsSource="{Binding Path=Elements}">
                                <TextBlock Text="{Binding Path=Title}" />
                            </HierarchicalDataTemplate>
                        </TreeView.ItemTemplate>
                    </TreeView>
                </MenuItem>               
            </Menu>
            
            <Button Content="Upload to Gallery"  Name="buttonUpload"  IsEnabled="False" Click="buttonUpload_Click" Padding="7,1,8,2" />
            
        </ToolBar>
        <Border BorderBrush="SteelBlue" BorderThickness="1" Width="570">
            <Grid Name="stackPanel1" Height="190" HorizontalAlignment="Stretch">
                <ListView Name="listViewUploadQueue" HorizontalAlignment="Left" Width="250" SelectionChanged="listViewUploadQueue_SelectionChanged" DisplayMemberPath="Name" />
                <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Right" VerticalAlignment="Stretch" Name="border1"  Width="316" >
                    <Image Name="imageCurrent" Stretch="UniformToFill" />
                </Border>
            </Grid>
        </Border>
        <ProgressBar Name="progressBarUpload" Height="10" />
        <Label Content="Status" Height="25" Name="labelStatus" VerticalAlignment="Bottom" />
    </StackPanel>
</Window>
